
public class Color3 extends Vector3 {
	public Color3(double r, double g, double b)
	{
		super(r, g, b);
	}
	
	public Color3 modulate(Color3 c)
	{
		return new Color3(x * c.x, y * c.y, z * c.z);
	}
	
	public Color3 mul(double c)
	{
		return new Color3(x * c, y * c, z * c);
	}
	
	public Color3 add(Color3 c)
	{
		return new Color3(x + c.x, y + c.y, z + c.z);
	}
	
	public static Color3 color(String c)
	{
		Color3 retColor = new Color3(0.0, 0.0, 0.0);
		
		if(c.equals("white"))
		{
			retColor.x = retColor.y = retColor.z = 1.0;
		}
		else if(c.equals("red"))
		{
			retColor.x = 1.0;
		}
		else if(c.equals("green"))
		{
			retColor.y = 1.0;
		}
		else if(c.equals("blue"))
		{
			retColor.z = 1.0;
		}
		else if(c.equals("black"))
		{
		}
		
		return retColor;
	}
	
	public static Color3 black()
	{
		return new Color3(0.0, 0.0, 0.0);
	}
	
	public static Color3 white()
	{
		return new Color3(1.0, 1.0, 1.0);
	}
	
	public static Color3 red()
	{
		return new Color3(1.0, 0.0, 0.0);
	}
	
	public static Color3 green()
	{
		return new Color3(0.0, 1.0, 0.0);
	}
	
	public static Color3 blue()
	{
		return new Color3(0.0, 0.0, 1.0);
	}
}
